import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.effect.Glow;
import javafx.scene.layout.HBox;
 
public class MenuCafesController {
 
    @FXML
    private HBox cafePreto;
    @FXML
    private HBox capuccino;
    @FXML
    private Label valorTotal;
    
    private int valorReal = 0;
    
    @FXML
    public void adquirePreto() {
    	this.valorReal += 1;
    	atualizaLabel();
    }
    private void atualizaLabel() {
    	valorTotal.setText(valorReal + ",00");
	}
	@FXML
    public void highlightPreto() {
    	cafePreto.setEffect(new Glow(40));
    }
    @FXML
    public void normalizaPreto() {
    	cafePreto.setEffect(null);
    }
    
    @FXML
    public void adquireCapuccino() {
    	this.valorReal += 3;
    	atualizaLabel();
    }

    @FXML
    public void highlightCapuccino() {
    	capuccino.setEffect(new Glow(40));
    }
    @FXML
    public void normalizaCapuccino() {
    	capuccino.setEffect(null);
    }
}